<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

</script>
<template>
  <div class="welcome">
    <h1>Welcome</h1>
    <el-button @click="router.push('/login')">登陆</el-button>
    <router-link to="/login">登陆</router-link>
  </div>
</template>
<style lang="scss">
.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  height: 100%;
  align-items: center;
}
</style>